//可以使用ThemeProvider组件来为你的应用提供主题
import styled,{ ThemeProvider } from "styled-components";

const Button = styled.button`
  color:${props=>props.theme.color}
`;

function ThemeStyle(){
    return (
        <ThemeProvider theme={{color:'red'}}>
            <Button>我是使用了主题颜色的按钮</Button>
        </ThemeProvider>
    )
}
export default ThemeStyle;